﻿using System;
using System.Collections;
using System.Drawing;
using System.Windows.Forms;
using AppCommon.Framework;
using AppResources;
using ESRI.ArcGIS.Controls;
using GISCommon.Entity;
using SysCommon;
using SysCommon.Entity.Business;
using SysCommon.Entity.Business.DCS;
using SysCommon.Entity.TMSIM.WS.BaseData;
using SysCommon.Entity.Map;
using SysCommon.Interface.BusinessGIS;
using SysCommon.Tools;
using SysCommon.Entity.Business.DCS.View;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.Geodatabase;
using System.Collections.Generic;
using TMSIM.Client.CM.Entity;
using GISCommon.Business;
using ESRI.ArcGIS.Geometry;

namespace TMSIM.Client.CM.UI.MainFrm
{
    public partial class MonitorCtrl : UserControl
    {
        public static string SelectedModeText = string.Empty;


        private Timer time = new Timer();


        public MonitorCtrl()
        {
            InitializeComponent();


        }

        #region init() 控件初始化
        /// <summary>
        /// 控件初始化
        /// </summary>
        public void init()
        {
            try
            {

            }
            catch (Exception ex)
            {
                SysCommon.Global.mainLog.Error("调用init()出错", ex);
            }
        }

        void time_Tick(object sender, EventArgs e)
        {

        }



        void dg_DV_RoadName_DoubleClick(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception ex)
            {

            }
        }
        #endregion



        #region
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btn_DangerPlan_Click(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception ex)
            {
                SysCommon.Global.mainLog.Error("调用dangerCtrl1.btn_DangerPlan_Click出错", ex);
            }
        }
        #endregion

        #region 显示危险品车运输路线
        /// <summary>
        /// 显示危险品车运输路线
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btn_CheckRoute_Click(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception ex)
            {
                SysCommon.Global.mainLog.Error("显示危险品方案计划的路线时发生错误", ex);
            }
        }
        #endregion

        #region 点击列表中的计划事件
        void dg_DV_Transgress_CurrentCellChanged(object sender, EventArgs e)
        {
            try
            {

            }
            catch (Exception ex)
            {
                SysCommon.Global.mainLog.Error("调用dg_DV_Transgress_CurrentCellChanged出错", ex);
            }
        }
        #endregion



        private void MonitorCtrl_Resize(object sender, EventArgs e)
        {
            // btn_Left_Close.Left = this.Width - btn_Left_Close.Width - 5;
        }

        private void btn_Left_Close_Click(object sender, EventArgs e)
        {
            Visible = false;
        }

        private void btn_DisplayPlace_Click(object sender, EventArgs e)
        {

        }




        private void cmb_QueryType_SelectedIndexChanged(object sender, EventArgs e)
        {


        }
    }
}